package com.smxy.mall.dao;

import com.smxy.mall.entity.Shop;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface ShopDao extends JpaRepository<Shop,Object>,JpaSpecificationExecutor<Shop> {
    Page<Shop> findAll(Pageable pageable);  //店铺列表
    Page<Shop> findByStatus(Integer status, Pageable pageable);  //根据状态查询
    Shop findById(Integer shopId);
}
